fix: sampled profile format validation errors#2350
Merged
armcknight merged 5 commits intomasterfrom Nov 2, 2022
Merged
Conversation
Contributor
Performance metrics 🚀
|
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 0fdf0b2 | 1243.92 ms | 1250.86 ms | 6.94 ms |
| ae4f9dd | 1238.88 ms | 1247.74 ms | 8.86 ms |
| 82e596a | 1252.72 ms | 1278.34 ms | 25.62 ms |
| 64225be | 1218.57 ms | 1238.38 ms | 19.81 ms |
| 0fdf0b2 | 1194.37 ms | 1227.90 ms | 33.53 ms |
| ef8b0ce | 1212.34 ms | 1249.64 ms | 37.30 ms |
| e43ce74 | 1235.77 ms | 1252.06 ms | 16.29 ms |
| 3e85a23 | 1244.94 ms | 1265.55 ms | 20.61 ms |
| 64225be | 1213.96 ms | 1227.62 ms | 13.66 ms |
| c929040 | 1254.84 ms | 1278.42 ms | 23.58 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 0fdf0b2 | 20.51 KiB | 332.90 KiB | 312.39 KiB |
| ae4f9dd | 20.50 KiB | 338.99 KiB | 318.49 KiB |
| 82e596a | 20.50 KiB | 337.76 KiB | 317.26 KiB |
| 64225be | 20.50 KiB | 339.02 KiB | 318.51 KiB |
| 0fdf0b2 | 20.51 KiB | 332.90 KiB | 312.39 KiB |
| ef8b0ce | 20.50 KiB | 337.71 KiB | 317.20 KiB |
| e43ce74 | 20.51 KiB | 335.49 KiB | 314.99 KiB |
| 3e85a23 | 20.50 KiB | 339.00 KiB | 318.49 KiB |
| 64225be | 20.50 KiB | 339.02 KiB | 318.52 KiB |
| c929040 | 20.51 KiB | 333.10 KiB | 312.59 KiB |
Previous results on branch: armcknight/fix/profile-payload-version
Startup times
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 8cdc1d3 | 1231.53 ms | 1262.29 ms | 30.76 ms |
| e8dd8d9 | 1246.43 ms | 1272.76 ms | 26.33 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 8cdc1d3 | 20.50 KiB | 361.83 KiB | 341.33 KiB |
| e8dd8d9 | 20.50 KiB | 361.75 KiB | 341.24 KiB |
63d5f90 to
0b02500
Compare
armcknight
commented
Nov 2, 2022
| profile[@"truncation_reason"] = profilerTruncationReasonName(_truncationReason); | ||
| profile[@"platform"] = _transactions.firstObject.platform; | ||
| profile[@"environment"] = _hub.scope.environmentString ?: _hub.getClient.options.environment ?: kSentryDefaultEnvironment; | ||
| profile[@"timestamp"] = [[SentryCurrentDate date] sentry_toIso8601String]; |
Member
Author
There was a problem hiding this comment.
Please confirm that a string such as 2022-11-02T21:16:20.877Z would validate? @phacops
Zylphrex
approved these changes
Nov 2, 2022
Member
Zylphrex
left a comment
There was a problem hiding this comment.
LGTM pending the follow-ups for the relative_end_ns and active_thread_id 👍
| @"name" : transaction.transaction, | ||
| @"relative_start_ns" : relativeStart, | ||
| @"relative_end_ns" : relativeEnd | ||
| @"relative_end_ns" : relativeEnd, |
Member
There was a problem hiding this comment.
Do we have a TODO somewhere to make sure the relative_end_ns is correct?
Member
Author
There was a problem hiding this comment.
I just filed an issue here for this, thanks for reminding me! #2352
phacops
approved these changes
Nov 2, 2022
armcknight
commented
Nov 3, 2022
| @"relative_end_ns" : relativeEnd | ||
| @"relative_end_ns" : relativeEnd, | ||
| @"active_thread_id" : | ||
| mainThreadID // TODO: we are just using the main thread ID for all transactions to |
kevinrenskers
added a commit
that referenced
this pull request
Nov 7, 2022
* master: test: Delete empty OOMLogicTests (#2361) fix: profiling transaction timestamps (#2359) fix: profiling transaction thread IDs (#2358) test: Use flush for macOS-SPM sample (#2360) release: 7.30.0 fix: SentryCrash writing nan for invalid number (#2348) HTTP Client errors (#2308) ci: Call make for analyze (#2353) fix: CoreData tracking entity name retrieval (#2329) fix: sampled profile format backend validation errors (#2350) build(deps): bump github/codeql-action from 2.1.29 to 2.1.30 (#2351) build(deps): bump github/codeql-action from 2.1.28 to 2.1.29 (#2344) fix: Fixed flaky testTimezoneChangeNotificationBreadcrumb (#2335) # Conflicts: # Sentry.xcodeproj/project.pbxproj
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This was causing profiles with the new schema to fail validation.
#skip-changelog